﻿using Puppy;
using System;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ServiceCollectionApplicationExtensions
    {
        public static IPuppyApplication AddApplication(
            [NotNull] this IServiceCollection services,
            Action<PuppyApplicationOptions> optionsAction = null)
        {
            return PuppyApplicationFactory.InitPuppy(services, optionsAction);
        }
    }
}